<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>⽐较两个对象或者两个数完全相等</title>
</head>
<body>
    
</body>
</html>
<script>
     // 比较两个对象完全相等
     var arr = {
            x: 923,
            y: 122
        };
        var obj = {
            x: 124,
            y: 145
        };
        if(arr === obj){// 判断全等于
            console.log('arr等于obj')
        }else{
            console.log('arr不等于obj')
        }
</script>